package com.java.jvm.demo.chapter02;

/**
 * @author wangning
 * @create 2021-10-25 20:13
 */
interface Func {
	public boolean func(String str);
}

public class Lambda {
	public void lambda(Func func) {
		return;
	}

	public static void main(String[] args) {
		Lambda lambda = new Lambda();
		Func func = str -> {
			return true;
		};
		lambda.lambda(func);

		lambda.lambda(str -> {
			return true;
		});
	}
}
